package com.huahua.bigdata.sparksql;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CityCount implements Serializable , Comparable<CityCount>{
    private String cityName;
    private Long count;

    @Override
    public int compareTo(CityCount other) {
        return (int)(other.count - this.count);
    }
}
